<?php

  /**
   * @package JooS
   * @subpackage PHPackager_Folders
   */
  class JooS_PHPackager_Folders {
    /**
     * @return string
     */
    public static function get_include_path() {
      require_once "JooS/Config.php";
      require_once "JooS/PHPackager/Helper/Includepath.php";

      $root = JooS_Config::PHPackager()->path();
      $folders = JooS_PHPackager_Helper_Includepath::get_include_path();

      $include_path = array();
      foreach ($folders as $path)
        array_push($include_path, $root . DIRECTORY_SEPARATOR . $path);
      array_push($include_path, ".");

      return implode(PATH_SEPARATOR, $include_path);
    }
  }
